/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package co.edu.univalle.proyecto.modelo;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author CQ 43 - 450LA
 */
@Entity
@Table(name = "Formatos")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Formatos.findAll", query = "SELECT f FROM Formatos f"),
    @NamedQuery(name = "Formatos.findByNombreFT", query = "SELECT f FROM Formatos f WHERE f.nombreFT = :nombreFT"),
    @NamedQuery(name = "Formatos.findByIdft", query = "SELECT f FROM Formatos f WHERE f.idft = :idft"),
    @NamedQuery(name = "Formatos.findByNombreProceso", query = "SELECT f FROM Formatos f WHERE f.nombreProceso = :nombreProceso"),
    @NamedQuery(name = "Formatos.findByVersion", query = "SELECT f FROM Formatos f WHERE f.version = :version")})
public class Formatos implements Serializable {
    private static final long serialVersionUID = 1L;
    @Size(max = 2147483647)
    @Column(name = "NombreFT")
    private String nombreFT;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 2147483647)
    @Column(name = "Id_ft")
    private String idft;
    @Size(max = 2147483647)
    @Column(name = "Nombre_Proceso")
    private String nombreProceso;
    @Column(name = "Version")
    private BigInteger version;

    public Formatos() {
    }

    public Formatos(String idft) {
        this.idft = idft;
    }

    public String getNombreFT() {
        return nombreFT;
    }

    public void setNombreFT(String nombreFT) {
        this.nombreFT = nombreFT;
    }

    public String getIdft() {
        return idft;
    }

    public void setIdft(String idft) {
        this.idft = idft;
    }

    public String getNombreProceso() {
        return nombreProceso;
    }

    public void setNombreProceso(String nombreProceso) {
        this.nombreProceso = nombreProceso;
    }

    public BigInteger getVersion() {
        return version;
    }

    public void setVersion(BigInteger version) {
        this.version = version;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idft != null ? idft.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Formatos)) {
            return false;
        }
        Formatos other = (Formatos) object;
        if ((this.idft == null && other.idft != null) || (this.idft != null && !this.idft.equals(other.idft))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "co.edu.univalle.proyecto.modelo.Formatos[ idft=" + idft + " ]";
    }
    
}
